#region References
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Diagnostics;

using DevExpress.XtraEditors;
#endregion

namespace Autumoon.CodeLibrary.Forms
{
    public partial class AboutXtraForm : DevExpress.XtraEditors.XtraForm
    {
        // Properties and fields.
        #region Properties and fields
        private static AboutXtraForm _instance = null;
        public static AboutXtraForm Instance
        {
            get { return ((_instance == null || _instance.IsDisposed) ? _instance = new AboutXtraForm() : _instance); }
        }
        #endregion

        // Constructors.
        #region Constructors
        /// <summary>
        /// Required designer variable.
        /// </summary>
        public AboutXtraForm()
        {
            // Required for Windows Form Designer support
            InitializeComponent();

            _instance = this;
        }
        #endregion

        // Public methods.
        #region Public Methods
        #endregion

        // Protected methods.
        #region Protected Methods
        #endregion

        // Private methods.
        #region Private Methods
        #endregion

        // Delegates and events.
        #region Delegates and Events
        private void AboutXtraForm_Load(object sender, EventArgs e)
        {
            this.licenseMemoEdit.Text = global::Autumoon.CodeLibrary.Forms.Properties.Settings.Default.LicenseContent;

            this.licenseMemoEdit.Select(this.licenseMemoEdit.Text.Length, 0);
        }

        private void licenseHyperLinkEdit_OpenLink(object sender, DevExpress.XtraEditors.Controls.OpenLinkEventArgs e)
        {
            Process.Start(global::Autumoon.CodeLibrary.Forms.Properties.Settings.Default.LicenseAddress);
        }

        private void okSimpleButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }
        #endregion
    }
}